<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <title>客户首页原型</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family:
          -apple-system,
          BlinkMacSystemFont,
          'Helvetica Neue',
          Helvetica,
          Segoe UI,
          Arial,
          Roboto,
          'PingFang SC',
          'miui',
          'Hiragino Sans GB',
          'Microsoft Yahei',
          sans-serif;
        background-color: #f7f8fa;
        color: #323233;
        line-height: 1.5;
      }

      .app-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      .app-header h1 {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
      }

      .header-actions {
        display: flex;
        gap: 15px;
      }

      .header-actions button {
        background: none;
        border: none;
        position: relative;
      }

      .badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff4d4f;
        color: white;
        font-size: 10px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        text-align: center;
        border-radius: 8px;
        padding: 0 3px;
      }

      .client-home {
        padding: 15px;
        padding-bottom: 70px;
      }

      .user-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        overflow: hidden;
        padding: 20px;
      }

      .user-info {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
      }

      .user-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #1989fa;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: bold;
        margin-right: 15px;
      }

      .user-details {
        flex: 1;
      }

      .user-name {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5px;
      }

      .user-company {
        font-size: 14px;
        color: #666;
        margin-bottom: 5px;
      }

      .user-contact {
        font-size: 12px;
        color: #999;
      }

      .user-stats {
        display: flex;
        border-top: 1px solid #f0f0f0;
        padding-top: 15px;
      }

      .stat-item {
        flex: 1;
        text-align: center;
      }

      .stat-value {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 5px;
      }

      .stat-label {
        font-size: 12px;
        color: #999;
      }

      .section-title {
        font-size: 16px;
        font-weight: bold;
        margin: 20px 0 15px;
      }

      .contract-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 15px;
        overflow: hidden;
      }

      .contract-header {
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .contract-title {
        font-size: 16px;
        font-weight: bold;
      }

      .contract-status {
        font-size: 12px;
        padding: 2px 8px;
        border-radius: 10px;
      }

      .status-active {
        background: #e8f5e9;
        color: #4caf50;
      }

      .status-pending {
        background: #fff8e1;
        color: #ff9800;
      }

      .contract-content {
        padding: 15px;
      }

      .info-row {
        display: flex;
        margin-bottom: 8px;
      }

      .info-label {
        width: 80px;
        font-size: 14px;
        color: #666;
      }

      .info-value {
        flex: 1;
        font-size: 14px;
      }

      .contract-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 15px;
      }

      .contract-btn {
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 12px;
        border: none;
      }

      .btn-primary {
        background: #1989fa;
        color: white;
      }

      .btn-default {
        background: #f5f5f5;
        color: #666;
      }

      .tab-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: white;
        display: flex;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
      }

      .tab-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 12px;
      }

      .tab-item.active {
        color: #1989fa;
      }

      .tab-icon {
        font-size: 20px;
        margin-bottom: 3px;
      }
    </style>
  </head>
  <body>
    <div class="app-header">
      <h1>首页</h1>
      <div class="header-actions">
        <button>
          <span>🔔</span>
          <span class="badge">2</span>
        </button>
      </div>
    </div>

    <div class="client-home">
      <div class="user-card">
        <div class="user-info">
          <div class="user-avatar">李</div>
          <div class="user-details">
            <div class="user-name">李总</div>
            <div class="user-company">广州某科技有限公司</div>
            <div class="user-contact">13800138000</div>
          </div>
        </div>
        <div class="user-stats">
          <div class="stat-item">
            <div class="stat-value">3</div>
            <div class="stat-label">合同总数</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">2</div>
            <div class="stat-label">进行中案件</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">1</div>
            <div class="stat-label">待处理事项</div>
          </div>
        </div>
      </div>

      <div class="section-title">我的合同</div>

      <div class="contract-card">
        <div class="contract-header">
          <div class="contract-title">服务合同 #SC2023001</div>
          <div class="contract-status status-active">生效中</div>
        </div>
        <div class="contract-content">
          <div class="info-row">
            <div class="info-label">签约日期</div>
            <div class="info-value">2023-01-15</div>
          </div>
          <div class="info-row">
            <div class="info-label">到期日期</div>
            <div class="info-value">2024-01-14</div>
          </div>
          <div class="contract-actions">
            <button class="contract-btn btn-default">查看详情</button>
            <button class="contract-btn btn-primary">在线支付</button>
          </div>
        </div>
      </div>

      <div class="section-title">我的案件</div>

      <div class="contract-card">
        <div class="contract-header">
          <div class="contract-title">知识产权纠纷 #IP2023001</div>
          <div class="contract-status status-active">进行中</div>
        </div>
        <div class="contract-content">
          <div class="info-row">
            <div class="info-label">开始日期</div>
            <div class="info-value">2023-02-10</div>
          </div>
          <div class="info-row">
            <div class="info-label">当前阶段</div>
            <div class="info-value">证据收集</div>
          </div>
          <div class="contract-actions">
            <button class="contract-btn btn-default">查看详情</button>
            <button class="contract-btn btn-primary">联系律师</button>
          </div>
        </div>
      </div>
    </div>

    <div class="tab-bar">
      <div class="tab-item active">
        <div class="tab-icon">🏠</div>
        <div>首页</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">📄</div>
        <div>合同</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">⚖️</div>
        <div>案件</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">💬</div>
        <div>消息</div>
      </div>
      <div class="tab-item">
        <div class="tab-icon">👤</div>
        <div>我的</div>
      </div>
    </div>
  </body>
</html>
